package com.bd.scm.domain.models.consume;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mason
 * @since 2019-09-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("xf_ac_time")
public class XfAcTime extends Model<XfAcTime> {

    private static final long serialVersionUID = 1L;

    @TableField("discount_rate")
    private Integer discountRate;
    @TableField("day_offset")
    private Integer dayOffset;
    @TableField("gly_no")
    private String glyNo;
    private String regserial;
    @TableField("ac_time_mould")
    private Integer acTimeMould;
    @TableField("each_unit")
    private Integer eachUnit;
    @TableField("timeout_rate")
    private Integer timeoutRate;
    @TableField("time_sub")
    private BigDecimal timeSub;
    @TableField("time_max_t")
    private Integer timeMaxT;
    @TableField("time_eachsub")
    private Integer timeEachsub;
    @TableField("dev_serial")
    private String devSerial;
    @TableField("is_timeout")
    private Integer isTimeout;
    @TableId(value = "xh", type = IdType.AUTO)
    private Integer xh;
    @TableField("ac_sub_auto")
    private Integer acSubAuto;
    @TableField("time_max_m")
    private Integer timeMaxM;
    private Integer lx;
    private LocalDateTime sj;
    @TableField("ac_type")
    private String acType;
    @TableField("time_no")
    private String timeNo;
    @TableField("day_order")
    private Integer dayOrder;
    @TableField("acdep_serial")
    private Integer acdepSerial;
    @TableField("time_limit")
    private Integer timeLimit;


    @Override
    protected Serializable pkVal() {
        return this.xh;
    }

}
